﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="frmTest.aspx.cs" Inherits="WebComputers.AdministratorHA.frmTest" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:GridView ID="grvTest" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None">
            <AlternatingRowStyle BackColor="White" />
            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
            <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
            <SortedAscendingCellStyle BackColor="#FDF5AC" />
            <SortedAscendingHeaderStyle BackColor="#4D0000" />
            <SortedDescendingCellStyle BackColor="#FCF6C0" />
            <SortedDescendingHeaderStyle BackColor="#820000" />
        </asp:GridView>
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div>
            Page Time : <%= DateTime.Now.ToString() %>
            <br />
            <br />
            <asp:UpdatePanel runat="server" ID="up1" RenderMode="Block" UpdateMode="Always">
                <ContentTemplate>
                    UpdatePanel 1 Time : <%= DateTime.Now.ToString() %>
                    <br />
                    <asp:FileUpload runat="server" ID="ful1" />
                    <asp:Button runat="server" ID="btnUpload" Text="Upload" OnClick="btnUpload_Click" />
                    <br />
                    <asp:Button runat="server" ID="btnProcess" Text="Process" OnClick="btnProcess_Click" />
                    <br />
                    <asp:Button runat="server" ID="btnUpdate" Text="Update 1" />
                    <br />
                    <asp:Label runat="server" ID="lblText" Visible="false">Hello</asp:Label>
                    <asp:UpdateProgress runat="server" ID="upr1" AssociatedUpdatePanelID="up1">
                        <ProgressTemplate>
                            Loading .......
                        </ProgressTemplate>
                    </asp:UpdateProgress>
                    <asp:Image runat="server" ID="img1" Width="100" Height="100" ImageAlign="Middle" />
                    
                </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />
                    <asp:PostBackTrigger ControlID="btnUpload" />
                </Triggers>
            </asp:UpdatePanel>
            <asp:Button runat="server" ID="Button1" Text="Update Outside UpdatePanel" />
            <asp:Button runat="server" ID="Button3" Text="UpdateAll" />
            <asp:UpdatePanel runat="server" ID="up2" RenderMode="Inline" UpdateMode="Conditional">
                <ContentTemplate>
                    UpdatePanel 2 Time : <%= DateTime.Now.ToString() %>
                    <asp:Button runat="server" ID="Button2" Text="Update 1 2" />
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </div>
    </form>
</body>
</html>
